import {AlertOutlined} from '@ant-design/icons';
import {DefaultFooter} from '@ant-design/pro-components';
import {GITEE_LINK} from "@/constants";
import {Image} from "antd";

const Footer: React.FC = () => {
  const defaultMessage = '乘风破浪团队出品';
  const currentYear = new Date().getFullYear();
  return (
    <DefaultFooter
      copyright={`${currentYear} ${defaultMessage}`}
      links={[
        // {
        //   key: 'prefect',
        //   title: '乘风破浪',
        //   href: GITEE_LINK,
        //   blankTarget: true,
        // },
        {
          key: 'gongan',
          title: <><img src={`/img.png`} height={20}></img>
            津公网安备12011102001617号
          </>,
          href: `https://beian.mps.gov.cn/#/query/webSearch?code=12011102001617`,
          blankTarget: true,
        },
        {
          key: 'beian',
          title: <><AlertOutlined/>津ICP备2023008164号-1</>,
          href: `https://beian.miit.gov.cn`,
          blankTarget: true,
        },
        // {
        //   key: 'vegetables',
        //   title: '绿源味道',
        //   href: GITEE_LINK,
        //   blankTarget: true,
        // },
      ]}
    />
  );
};
export default Footer;
